package net.dotool;

import java.nio.charset.Charset;

/**
 * 字符集工具类 Author 李岩飞 Email eliyanfei@126.com 2017/11/22
 */
public class Charsets {

	// 字符集GBK
	public static final Charset GBK = Charset.forName("GBK");
	// 字符集ISO-8859-1
	public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
	// 字符集utf-8
	public static final Charset UTF_8 = Charset.forName("UTF-8");

	public static Charset defaultCharset() {
		return UTF_8;
	}

	public static Charset charset(String charsetName) {
		return Charset.forName(charsetName);
	}

}
